package com.yezi.lampcourt.ui.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yezi.lampcourt.R;
import com.yezi.lampcourt.entity.CourtBean;

import java.util.List;

/**
 * Created by HongMing Ye
 * on 2017/10/9 0009.
 */

public class CourtListAdapter extends BaseQuickAdapter<CourtBean, BaseViewHolder> {
    public CourtListAdapter(@LayoutRes int layoutResId, @Nullable List<CourtBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CourtBean item) {
        helper.setText(R.id.tv_court_name, item.getCourtName());
    }
}
